package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.ExerciseProblemsDTO;
import com.fuli.app.dto.query.ExerciseProblemsQueryDTO;

import java.util.List;

public interface ExerciseProblemsService {
    ActionResult<String> add(ExerciseProblemsDTO dto);

    ActionResult<String> update(ExerciseProblemsDTO dto);

    ActionResult<ExerciseProblemsDTO> get(String id);

    ActionResult<Pagination<ExerciseProblemsDTO>> listByQueryDTO(ExerciseProblemsQueryDTO queryDTO);

    ActionResult<String> up(String id);

    ActionResult<String> down(String id);

    ActionResult<String> refresh(String curriculumId);

    ActionResult<String> delete(String id);

    ActionResult<List<String>> batchDelete(List<String> ids);

    ActionResult<List<ExerciseProblemsDTO>> getByCurriculumId(String curriculumId);
}
